public class test {
    public static void main(String[] args) {
        Heap heap=new Heap();
        int[] arr={3,2,4,6,7,8};
        heap.initElem(arr);
        heap.createHeap();
        heap.show();
        heap.push(1);
        heap.show();
        System.out.println(heap.peekHeap());
        heap.pollHeap();
        heap.show();
    }
}
